<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="resources/common/jquery.min.js"></script>
<script src="resources/common/utils/jquery.plug.cookie.js"></script>
<script src="resources/common/utils/jquery.plug.submit.js"></script>


<title>Insert title here</title>
</head>
<body>
	
	
	<form action="login_submit">
	
	用户名<input name="username" type="text" />
	密码<input name="passwd" type="text" />
	
	<input type="submit" value="确定" />
	</form>
	<button id="b1">add cookie1</button>
	<button id="b2">add cookie2</button>
	<button id="b3">show cookie</button>
</body>
<script type="text/javascript">
$(function(){
	$("#b1").click(function(){
		$.cookie.add("b1","b1fefefef",5);
	});
	$("#b2").click(function(){
		$.cookie.add("b2","b2fefefef",5);
	});
	$("#b3").click(function(){
		alert(document.cookie);
		$.submit.get("http://www.baidu.com");
	});
	
});

</script>

</html>